package com.j1ay.forum.model.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author J1ay
 * @Date 2021/12/18 20:44
 * @Description
 */

@Data
@TableName("tb_permission")
@ApiModel("权限")
public class Permission implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "权限名称", required = true)
    private String name;

    @ApiModelProperty(value = "路径",required = true)
    private String path;

}
